local M = {}

function M:init_artifact()
    return ARTIFACT_D:init_artifact_info(self)
end

function M:get_artifact(swid)
    return self:query("artifact", swid)
end

function M:set_artifact_level(swid, swlev)
    return self:set("artifact", swid, { level = swlev, step = 0, })
end

function M:get_artifact_level(swid)
    return self:query("artifact", swid, "level")
end

function M:set_use_artifact(swid)
    return self:set("use_artifact", swid)
end

function M:get_use_artifact()
    return self:query("use_artifact") or 0
end

function M:change_artifact(swid)
    return ARTIFACT_D:change_artifact(self, swid)
end

function M:improve_artifact_level(swid)
    return ARTIFACT_D:improve_artifact_level(self, swid)
end

function M:unlock_artifact(swid)
    return ARTIFACT_D:unlock_artifact(self, swid)
end

F_CHAR_ARTIFACT = M
